<?php

class UsuarioComponent extends Component
{
	public function __construct()
	{
	}
	
	public function estaLogado()
	{
		if($this->lojistaEstaLogado()) return true;
		else if($this->administradorEstaLogado()) return true;
		else return false;	
	}
	
	public function logout()
	{
		$_SESSION['lojista'] = null;
		$_SESSION['loja'] = null;
		$_SESSION['administrador'] = null;	
	}
}

?>